<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class Brang extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('brand', function (Blueprint $table) {
            $table->increments('brand_id',11);
            $table->string('brand_name',100)->comment('品牌名称');
            $table->string('brand_initial',1)->comment('品牌名称首字母');
            $table->string('brand_class',50)->comment('类别名称');
            $table->string('brand_pic',100)->comment('图片');
            $table->tinyInteger('brand_sort')->unsigned()->default(0)->comment('排序');
            $table->tinyInteger('brand_recommend')->default(0)->comment('推荐，0为否，1为是，默认为0 id');
            $table->integer('store_id')->unsigned()->default(0)->comment('店铺id');
            $table->tinyInteger('brand_apply')->default(1)->comment('品牌申请，0为申请中，1为通过，');
            $table->integer('class_id')->default(0)->comment('所属分类id');
            $table->tinyInteger('show_type')->default(0)->comment('品牌展示类型 0表示图片 1表示文字');

        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('brand');
    }
}
